<%@ Page Language="C#" MasterPageFile="~/MasterPageMcSigAdmin.master" AutoEventWireup="true" CodeFile="SigPlanProgramaTipo.aspx.cs" Inherits="ContratosTipoLiquidacion" Title="Lineas" %>
<%@ Register Assembly="FUA" Namespace="Subgurim.Controles" TagPrefix="cc2" %>
<%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Assembly="Anthem" Namespace="Anthem" TagPrefix="anthem" %>
<%@ Register Assembly="UsrControls" Namespace="UsrControls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h1 class="presupuesto">Programa Tipo</h1>
    <dxwgv:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False"
        CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue"
        DataSourceID="SqlDataSource1" KeyFieldName="CTL_ID" Width="100%" 
        Theme="PlasticBlue">
        <SettingsPager ShowDefaultImages="False">
            <AllButton Text="All">
            </AllButton>
            <NextPageButton Text="Next &gt;">
            </NextPageButton>
            <PrevPageButton Text="&lt; Prev">
            </PrevPageButton>
        </SettingsPager>
       
        <Styles CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue">
                                     <Header ImageSpacing="10px" SortingImageSpacing="10px">
                                                    </Header>
                                                    
        </Styles>
        <Columns>
            <dxwgv:GridViewCommandColumn VisibleIndex="0">
                <EditButton Visible="True" Text="Editar">
                </EditButton>
                <NewButton Visible="True" Text="Nuevo">
                </NewButton>
                <DeleteButton Visible="True" Text="Borrar">
                </DeleteButton>
                <CancelButton Visible="True" Text="Cancelar">
                </CancelButton>
                <UpdateButton Visible="True" Text="Guardar">
                </UpdateButton>
                <ClearFilterButton Visible="True">
                </ClearFilterButton>
            </dxwgv:GridViewCommandColumn>
            <dxwgv:GridViewDataTextColumn FieldName="CTL_ID" ReadOnly="True" Visible="False"
                VisibleIndex="0">
                <EditFormSettings Visible="False" />
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn Caption="Nombre" FieldName="CTL_NOMBRE" VisibleIndex="1">
            </dxwgv:GridViewDataTextColumn>
        </Columns>
        <Settings ShowFilterRow="True" ShowFilterRowMenu="True" />
       
        <StylesEditors>
            <CalendarHeader Spacing="11px">
            </CalendarHeader>
            <ProgressBar Height="25px">
            </ProgressBar>
        </StylesEditors>
    </dxwgv:ASPxGridView>
    &nbsp;<br />
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MCSIGConnectionString %>"
        DeleteCommand="DELETE FROM [CON_TIPO_LIQUIDACION] WHERE [CTL_ID] = @CTL_ID" InsertCommand="INSERT INTO [CON_TIPO_LIQUIDACION] ([CTL_ID], [CTL_NOMBRE]) VALUES (@CTL_ID, @CTL_NOMBRE)"
        SelectCommand="SELECT [CTL_ID], [CTL_NOMBRE] FROM [CON_TIPO_LIQUIDACION]" UpdateCommand="UPDATE [CON_TIPO_LIQUIDACION] SET [CTL_NOMBRE] = @CTL_NOMBRE WHERE [CTL_ID] = @CTL_ID">
        <DeleteParameters>
            <asp:Parameter Name="CTL_ID" Type="Decimal" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="CTL_NOMBRE" Type="String" />
            <asp:Parameter Name="CTL_ID" Type="Decimal" />
        </UpdateParameters>
        <InsertParameters>
            <asp:Parameter Name="CTL_ID" Type="Decimal" />
            <asp:Parameter Name="CTL_NOMBRE" Type="String" />
        </InsertParameters>
    </asp:SqlDataSource>
</asp:Content>

